package com.yhy.wxzn.common.enums;
/**
 * @Auther: 97354
 * @Date: 2023/12/11 16:07
 * @Description: WcsPlcPropertyTypeEnums
 * @Version 1.0.0
 */
public enum WcsPlcPropertyTypeEnums {

    HEARTBEAT(1,"心跳"),
    TRANSLINE(2,"输送线点位"),
    HOIST(3,"提升机点位"),
    HOISTCOORD(4,"提升机备用点位"),
    FOURCAR(5,"四向车点位"),
    FOURCARCOORD(6,"四向车备用点位"),
    PORT(7,"出入库口")
    ;

    private final int value;
    private final String desc;

    WcsPlcPropertyTypeEnums(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static WcsPlcPropertyTypeEnums ofValue(Integer target) {
        for (WcsPlcPropertyTypeEnums status : values()) {
            if (status.value == target) {
                return status;
            }
        }
        return null;
    }
}
